package com.jeecms.service.impl;

import java.util.ArrayList;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jeecms.dao.LinkDao;
import com.jeecms.entity.Link;
import com.jeecms.service.LinkService;

@Service("linkService")
public class LinkServiceImpl implements LinkService {
	
	@Autowired
	LinkDao linkDao;
	
	public ArrayList<Link> getLinkList(Map map) {
		ArrayList<Link> links = linkDao.getLinkList(map);
		return links;
	}

	public Long getNumTotal(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return linkDao.getNumTotal(map);
	}

	public Long addLink(Link link) {
		// TODO Auto-generated method stub
		return linkDao.addLink(link);
	}

	public Long updateLink(Link link) {
		// TODO Auto-generated method stub
		return linkDao.updateLink(link);
	}

	public Long delete(int id) {
		// TODO Auto-generated method stub
		return linkDao.delete(id);
	}

}
